package server;

import java.util.LinkedList;
import twitter4j.Status;

public class StatusStack {

	private LinkedList<Status> stack;

	public StatusStack() {
		this.stack = new LinkedList<Status>();
	}

	public synchronized Status pop() {
		return this.stack.pop();
	}
	
	public synchronized void push(Status t) {
		this.stack.add(t);
		notify();
	}

	public synchronized boolean isEmpty() {
		return this.stack.isEmpty();
	}

}
